package com.appkubes.mall.core.pojo;

import com.appkubes.mall.core.po.FintechRepairChannelInfo;
import com.appkubes.mall.core.po.FintechRepairChannelInfoExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.type.JdbcType;

public interface FintechRepairChannelInfoMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_channel_info
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechRepairChannelInfoSqlProvider.class, method="countByExample")
    long countByExample(FintechRepairChannelInfoExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_channel_info
     *
     * @mbg.generated
     */
    @DeleteProvider(type=FintechRepairChannelInfoSqlProvider.class, method="deleteByExample")
    int deleteByExample(FintechRepairChannelInfoExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_channel_info
     *
     * @mbg.generated
     */
    @Delete({
        "delete from fintech_repair_channel_info",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    int deleteByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_channel_info
     *
     * @mbg.generated
     */
    @Insert({
        "insert into fintech_repair_channel_info (id, `name`, ",
        "code, remark, parent_id, ",
        "price, lev, seq_no, ",
        "create_time, update_time)",
        "values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, ",
        "#{code,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{parentId,jdbcType=VARCHAR}, ",
        "#{price,jdbcType=DECIMAL}, #{lev,jdbcType=INTEGER}, #{seqNo,jdbcType=INTEGER}, ",
        "#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})"
    })
    int insert(FintechRepairChannelInfo record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_channel_info
     *
     * @mbg.generated
     */
    @InsertProvider(type=FintechRepairChannelInfoSqlProvider.class, method="insertSelective")
    int insertSelective(FintechRepairChannelInfo record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_channel_info
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechRepairChannelInfoSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR),
        @Result(column="code", property="code", jdbcType=JdbcType.VARCHAR),
        @Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR),
        @Result(column="parent_id", property="parentId", jdbcType=JdbcType.VARCHAR),
        @Result(column="price", property="price", jdbcType=JdbcType.DECIMAL),
        @Result(column="lev", property="lev", jdbcType=JdbcType.INTEGER),
        @Result(column="seq_no", property="seqNo", jdbcType=JdbcType.INTEGER),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP)
    })
    List<FintechRepairChannelInfo> selectByExampleWithRowbounds(FintechRepairChannelInfoExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_channel_info
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechRepairChannelInfoSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR),
        @Result(column="code", property="code", jdbcType=JdbcType.VARCHAR),
        @Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR),
        @Result(column="parent_id", property="parentId", jdbcType=JdbcType.VARCHAR),
        @Result(column="price", property="price", jdbcType=JdbcType.DECIMAL),
        @Result(column="lev", property="lev", jdbcType=JdbcType.INTEGER),
        @Result(column="seq_no", property="seqNo", jdbcType=JdbcType.INTEGER),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP)
    })
    List<FintechRepairChannelInfo> selectByExample(FintechRepairChannelInfoExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_channel_info
     *
     * @mbg.generated
     */
    @Select({
        "select",
        "id, `name`, code, remark, parent_id, price, lev, seq_no, create_time, update_time",
        "from fintech_repair_channel_info",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR),
        @Result(column="code", property="code", jdbcType=JdbcType.VARCHAR),
        @Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR),
        @Result(column="parent_id", property="parentId", jdbcType=JdbcType.VARCHAR),
        @Result(column="price", property="price", jdbcType=JdbcType.DECIMAL),
        @Result(column="lev", property="lev", jdbcType=JdbcType.INTEGER),
        @Result(column="seq_no", property="seqNo", jdbcType=JdbcType.INTEGER),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP)
    })
    FintechRepairChannelInfo selectByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_channel_info
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechRepairChannelInfoSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") FintechRepairChannelInfo record, @Param("example") FintechRepairChannelInfoExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_channel_info
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechRepairChannelInfoSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") FintechRepairChannelInfo record, @Param("example") FintechRepairChannelInfoExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_channel_info
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechRepairChannelInfoSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(FintechRepairChannelInfo record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_repair_channel_info
     *
     * @mbg.generated
     */
    @Update({
        "update fintech_repair_channel_info",
        "set `name` = #{name,jdbcType=VARCHAR},",
          "code = #{code,jdbcType=VARCHAR},",
          "remark = #{remark,jdbcType=VARCHAR},",
          "parent_id = #{parentId,jdbcType=VARCHAR},",
          "price = #{price,jdbcType=DECIMAL},",
          "lev = #{lev,jdbcType=INTEGER},",
          "seq_no = #{seqNo,jdbcType=INTEGER},",
          "create_time = #{createTime,jdbcType=TIMESTAMP},",
          "update_time = #{updateTime,jdbcType=TIMESTAMP}",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(FintechRepairChannelInfo record);
}